﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPageAdmin.master" AutoEventWireup="true"
    CodeFile="DonHang.aspx.cs" Inherits="DonHang" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" BackColor="White"
                BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black"
                GridLines="Vertical" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing"
                Width="100%" OnPageIndexChanging="GridView1_PageIndexChanging" OnSelectedIndexChanging="GridView1_SelectedIndexChanging">
                <RowStyle HorizontalAlign="Center" />
                <Columns>
                    <asp:CommandField ShowSelectButton="True" />
                    <asp:CommandField ShowDeleteButton="True" />
                    <asp:CommandField ShowEditButton="True" />
                </Columns>
                <FooterStyle BackColor="#CCCCCC" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="#CCCCCC" />
            </asp:GridView>
            <div style="margin-top: 10; text-align: center;">
                Tìm theo tên khách hàng :
                <asp:TextBox ID="txtCustomerName" Width="300px" runat="server"></asp:TextBox>
                <asp:Button ID="btnFind" runat="server" Text="Tìm" OnClick="btnFind_Click" />
            </div>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table style="width: 350px">
                <tr>
                    <td>
                        <asp:TextBox ID="txtID" runat="server" Visible="false" ReadOnly="True"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td style="width: 100px">
                        Tên khách hàng:
                    </td>
                    <td>
                        <asp:TextBox ID="txtTenKH" runat="server" Width="233px" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        S&#7889; &#273;i&#7879;n tho&#7841;i:
                    </td>
                    <td>
                        <asp:TextBox ID="txtSDT" runat="server" Width="139px" ReadOnly="True"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        N&#417;i nh&#7853;n:
                    </td>
                    <td>
                        <asp:TextBox ID="txtNoiNhan" runat="server" Width="230px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Tr&#7841;ng thái:
                    </td>
                    <td>
                        <asp:DropDownList ID="cmbTrangThai" runat="server" Width="150px">
                            <asp:ListItem>&#272;&#7863;t hàng</asp:ListItem>
                            <asp:ListItem>H&#7911;y</asp:ListItem>
                            <asp:ListItem>&#272;ã thanh toán</asp:ListItem>
                            <asp:ListItem>Hoàn thành</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">
                        <asp:Button ID="btnCapNhat" runat="server" Text="C&#7853;p nh&#7853;t" OnClick="btnCapNhat_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="List" OnClick="btnList_Click" Width="50px" />
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="View3" runat="server">
            <asp:GridView ID="GridView2" runat="server" BackColor="White" BorderColor="#999999"
                BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" GridLines="Vertical"
                Width="100%" OnRowDeleting="GridView2_RowDeleting">
                <RowStyle HorizontalAlign="Center" />
                <Columns>
                    <asp:CommandField ShowDeleteButton="True" />
                </Columns>
                <FooterStyle BackColor="#CCCCCC" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="#CCCCCC" />
            </asp:GridView>
            <div align="center" style="margin-top: 10px;">
                <asp:Button ID="btnBack" runat="server" Width="100px" Text="Back" OnClick="btnBack_Click" />
            </div>
        </asp:View>
    </asp:MultiView>
</asp:Content>
